<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<LINK href="style.css" rel=stylesheet type=text/css>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>::LOGIN Veterinaria HELPME::</title>
        <script>
                function validar() {
                        var x = document.f1.txtUsuario.value;
                        var y = document.f1.txtPassword.value;
                        
                        if (x == ""){
                            alert('Ingrese usuario');
                            return false;
                         } else if( y == ""){
                            alert('Ingrese clave');
                            return false;
                         }
                         return true;
                       }
    
        
        </script>


</head>
<body>

<h3><center><br><br><br><br><br>SISTEMA DE VETERINARIA HELPME</center></h3>


        <form name="f1" action="LoginServlet" method="post" onsubmit="return validar();" >
                   
<table align="center">
                        <tr>
                                <td>Usuario:</td>
                                <td> <input name="txtUsuario" />  </td>
                        </tr>
                        <tr>
                                <td>Password:</td>
                                <td> <input type="password" name="txtPassword" /> </td>
                        </tr>
                        <tr>
                                <td></td>
                                <td> <input type="submit" value="Ingresar"/> </td>
                        </tr>
                </table>
        </form>
        
</body>

</html>